package com.woniu.config;

import com.woniu.filter.FinanceGlobalFilter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

/**
 *  网关配置
 */
@Configuration
public class GatewayConfig {

    /**
     * 全局过滤器
     */
    @Bean
    @Order(-100)
    public GlobalFilter financeGlobalFilter() {
        return new FinanceGlobalFilter();
    }



}